xen: arm: correct off-by-one error in consider_modules
authorIan Campbell <ijc@hellion.org.uk>
Sun, 21 Dec 2014 11:18:53 +0000 (11:18 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 6 Jan 2015 11:12:19 +0000 (11:12 +0000)
commitdea3ff6ed2af2fe3ab084733d3e71daf4dcfb8a0
tree36f22459ed0ba3d6d502c0f9af24652cb582209e
parent54eb18cd63ed7243f1ab497e35807bf6f4a436ec
xen: arm: correct off-by-one error in consider_modules

By iterating up to <= mi->nr_mods we are running off the end of the boot
modules, but more importantly it causes us to then skip the first FDT reserved
region, meaning we might clobber it.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/setup.c